/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.encapsulation.model;

/**
 *
 * @author Matthew
 */
public final class StudentDetails {
    
    private final String name;
    private final String surname;
    private final int year;
    
    public StudentDetails(String name, String surname, int year){
        this.name = name;
        this.surname = surname;
        this.year = year;
    }

     public String getName() {
        return name;
    }
    
    public String getSurname() {
       return surname;
    }

    public int getYear() {
       return year;
    }
    
}
